package cn.edu.lzu.dao;

import cn.edu.lzu.entity.Examiner;
import cn.edu.lzu.entity.TotalExamine;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @PackageName: cn.edu.lzu.dao
 * @InterfaceName: TotalExamineMapper
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2020/5/17 21:15
 * @Version: 1.0
 */
@Mapper
public interface TotalExamineMapper {
    @Insert("insert into total_examine (book_registe_id, brief_summary, diagnosis, proposal, examiner_id, record_time, is_deleted) values (#{totalExamine.bookRegisteId}, #{totalExamine.briefSummary}, #{totalExamine.diagnosis}, #{totalExamine.proposal}, #{examiner.examinerId}, now(), 0)")
    int insTotalExamine(@Param("totalExamine") TotalExamine totalExamine, @Param("examiner") Examiner examiner);
}
